<?php /** * @copyright        2016 opencart.cn - All Rights Reserved * @link             http://www.guangdawangluo.com * @author           TL <mengwb@opencart.cn> * @created          2016-12-12 10:00:00 * @modified         2016-12-12 10:16:03 */class ModelExtensionPaymentWeipay extends Model{      public function getMethod($address, $total)      {        $this->load->language('extension/payment/weipay');        if ($this->config->get('weipay_total') > 0 && $this->config->get('weipay_total') > $total) {            $status = false;        } else {            $status = true;        }        $method_data = array();        if ($status) {              $method_data = array(                 'code'         => 'weipay',                'title'      => $this->language->get('text_title'),                'terms'      => '',                'sort_order' => $this->config->get('weipay_sort_order')            );        }        return $method_data;    }}